package main

import "fmt"

type Student struct {
	id   int
	name string
	sex  byte
	age  int
	addr string
}

func main() {
	var p1 *Student = &Student{3, "winnie", 'f', 23, "hangzhou"}
	fmt.Println(*p1)

	p2 := &Student{id: 7, name: "dannis", age: 34}
	fmt.Println(*p2)
}

//func main() {
//	var s1 Student = Student{3, "Jason", 'm', 70, "beijing"}
//	fmt.Println(s1)

//	s2 := Student{id: 7, name: "winnie", addr: "chengdu"}
//	fmt.Println(s2)
//}
